#!/usr/bin/bash

HOST=$1                  #This is the FTP servers host or IP address.
USER=Administrator       #This is the FTP user that has access to the server.
PASS=D3kt3chstp          #This is the password for the FTP user.
XVIENGUDIR="ftpvol/xviengu"


ftp -inv $HOST << EOF

user $USER $PASS

#if [ ! -d "$XVIENGUDIR" ]; then 
#if[-n `ssh remotehost 'ls /home/user/mydir'`];then

#    mkdir ftpvol/xviengu
#fi

cd ftpvol/xviengu
bin
mput *
bye
